package com.cqupt.pojo;

import org.springframework.context.annotation.Bean;

public class Enclosure {
    /**
     * 附件ID
     */
    private Integer file_id;
    /**
     * 附件地址
     */
    private String file_dir;
    /**
     * 知识id
     */
    private Integer knowledge_id;
    /**
     * 提交者
     */
    private String submit_user;
    /**
     * 提交时间
     */
    private String submit_time;


    /**
     *
     * @param file_id
     * @param knowledge_id
     * @param file_dir
     * @param submit_user
     * @param submit_time
     */
    public Enclosure(Integer file_id, Integer knowledge_id, String file_dir, String submit_user, String submit_time) {
        this.file_id = file_id;
        this.file_dir = file_dir;
        this.knowledge_id = knowledge_id;
        this.submit_user = submit_user;
        this.submit_time = submit_time;
    }
    /**
     *
     * @param knowledge_id
     * @param file_dir
     * @param submit_user
     * @param submit_time
     */
    public Enclosure(String file_dir, Integer knowledge_id, String submit_user, String submit_time) {
        this.file_dir = file_dir;
        this.knowledge_id = knowledge_id;
        this.submit_user = submit_user;
        this.submit_time = submit_time;
    }


    public Integer getFile_id() {
        return file_id;
    }

    public void setFile_id(Integer file_id) {
        this.file_id = file_id;
    }

    public String getFile_dir() {
        return file_dir;
    }

    public void setFile_dir(String file_dir) {
        this.file_dir = file_dir;
    }

    public Integer getKnowledge_id() {
        return knowledge_id;
    }

    public void setKnowledge_id(Integer knowledge_id) {
        this.knowledge_id = knowledge_id;
    }

    public String getSubmit_user() {
        return submit_user;
    }

    public void setSubmit_user(String submit_user) {
        this.submit_user = submit_user;
    }

    public String getSubmit_time() {
        return submit_time;
    }

    public void setSubmit_time(String submit_time) {
        this.submit_time = submit_time;
    }

    @Override
    public String toString() {
        return "Enclosure{" +
                "file_id=" + file_id +
                ", file_dir='" + file_dir + '\'' +
                ", knowledge_id=" + knowledge_id +
                ", submit_user='" + submit_user + '\'' +
                ", submit_time='" + submit_time + '\'' +
                '}';
    }
}
